using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using Marlimer.Common;

namespace Marlimer.Data.Universal
{
    public class uni_Parametros
    {
        public double getParametroById(int ccod_tippar)
        {
            SqlCommand sqlcmd = new SqlCommand();
            SqlDataAdapter da = new SqlDataAdapter();
            DataSet ds = new DataSet();

            sqlcmd.CommandText = "spsGetParametroById";
            sqlcmd.CommandType = CommandType.StoredProcedure;
            sqlcmd.Connection = Session.getConexion();
            sqlcmd.Parameters.Add("@ccod_tippar", SqlDbType.Int);
            sqlcmd.Parameters["@ccod_tippar"].Value = ccod_tippar;

            return Convert.ToDouble(sqlcmd.ExecuteScalar()); 
        }
    }
}
